<div class="login">
    <form class="ui form"  (submit)="onSubmit()" [hidden]="registerServices.checkLogin()">
        <div class="field">
            <label>用户名</label>
            <input type="text" name="userName" [(ngModel)]="model.username" placeholder="用户名"/>
        </div>
        <div class="field">
            <label>密码</label>
            <input type="text" name="password" [(ngModel)]="model.password"  placeholder="密码"/>
        </div>

        <button class="ui button" type="submit">Submit</button>
    </form>

    <div [hidden]="!registerServices.checkLogin()">
        <h3> 您已登录</h3>
        <h2>欢迎{{currentUserName}}..........</h2>
    </div>
</div>
